package com.easy.query.solon.web.domain;

import com.easy.query.core.annotation.Column;
import com.easy.query.core.annotation.Encryption;
import com.easy.query.core.annotation.Table;
import com.easy.query.solon.web.encrypt.JavaEncryptionStrategy;
import com.easy.query.solon.web.encrypt.JavaSM4EncryptionStrategy;
import com.easy.query.solon.web.encrypt.MySQLAESColumnValueSQLConverter;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * create time 2023/8/13 22:03
 * 文件说明
 *
 * @author xuejiaming
 */
@Data
@Table("sys_user")
public class SysUserSM4 {
    @Column(primaryKey = true)
    private String id;
    private String name;
    @Column(sqlConversion = MySQLAESColumnValueSQLConverter.class)
    private String phone;
    @Encryption(strategy = JavaSM4EncryptionStrategy.class,supportQueryLike = true)
    private String Address;
    private LocalDateTime createTime;
}
